
using CStock;
using System;
using System.Diagnostics;
using CUtil;
using CTrading;
using TestCases.StockData;

using NUnit.Framework;
namespace TestCases.StockData
{
	

	/// <summary>Some simple Tests.</summary>
	/// 
	[TestFixture]
    public class TradeEconomyTest : ProgramContext_TestCases
	{
		
        ITradeEconomyFactory tradeEconomyFactory;
        public TradeEconomyTest()
        {
            tradeEconomyFactory = new TradeEconomyFactory();
            
            
        }
		[SetUp] 
		public void Init() 
		{             	
			
		}
        [Test]
        public void TestInit()
        {
            tradeEconomyFactory.Create_Default();
            tradeEconomyFactory.Create_TestData();
        }
        [Test]
        public void Create_Default()
        {
            tradeEconomyFactory.Create_Default();
           
            tradeEconomyFactory.Serialize();

        }
        [Test]
        public void Create_TestData()
        {
            tradeEconomyFactory.Create_Default();
            tradeEconomyFactory.Create_TestData();
            tradeEconomyFactory.Serialize();
            
        }

        [Test]
        public void TestEconomy()
        {

            Assert.IsTrue(tradeEconomyFactory.Evaluate_Economy());
        }
        [Test]
        public void DeSerialize()
        {
            tradeEconomyFactory.DeSerialize();
        }
        [Test]
        public void Serialize()
        {
            tradeEconomyFactory.Create_Default();
            tradeEconomyFactory.Serialize();
        }
        [Test]
        public void Serialize_DefaultData()
        {
            TestInit();
            tradeEconomyFactory.Serialize();
        }
        [Test]
        public void RemoveAll()
        {
            
            Assert.IsTrue(tradeEconomyFactory.RemoveAll());
        }

     
	}
	
}